<?php echo $this->fetch('member.header.html'); ?>
<div class="content">
    <?php echo $this->fetch('member.menu.html'); ?>
    <div id="right">
        <?php echo $this->fetch('member.curlocal.html'); ?>
<?php echo $this->fetch('member.submenu.html'); ?>
        <div class="wrap">
            <div class="public">
                <div class="message message_line">
                    <div style="height: 400px; overflow-y: scroll">
                    <?php $_from = $this->_var['chat_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cl');if (count($_from)):
    foreach ($_from AS $this->_var['cl']):
?>
                    <?php if ($this->_var['cl']['user_id'] == $this->_var['cl']['receiverid']): ?>
                        <div class="message_con">
                            <div class="user">
                                <p><img src="<?php echo htmlspecialchars($this->_var['cl']['portrait']); ?>" width="50" height="50" alt="" /></p>
                                <h3><span><?php echo htmlspecialchars($this->_var['cl']['receive_phone']); ?></span><br /><?php echo local_date("Y-m-d H:i",$this->_var['cl']['sendtime']); ?></h3>
                                <h4 style="text-align: left"><?php echo $this->_var['cl']['sendcontent']; ?></h4>
                            </div>
                            <div class="txt"><?php echo call_user_func("short_msg_filter",$this->_var['cl']['content']); ?></div>
                        </div>
                        <?php else: ?>
                        <div class="message_con">
                            <div class="seller">
                                <p><img src="<?php echo htmlspecialchars($this->_var['cl']['portrait']); ?>" width="50" height="50" alt="" /></p>
                                <h3><span><?php echo htmlspecialchars($this->_var['cl']['receive_phone']); ?></span><br /><?php echo local_date("Y-m-d H:i",$this->_var['cl']['sendtime']); ?></h3>
                                <h4 style="text-align: right"><?php echo $this->_var['cl']['sendcontent']; ?></h4>
                            </div>
                            <div class="txt"><?php echo call_user_func("short_msg_filter",$this->_var['cl']['content']); ?></div>
                        </div>
                    <?php endif; ?>
                    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                    </div>
                </div>
            </div>
        </div>
        <form method="post" action="index.php?app=my_chatlog&amp;act=send&amp;reveiver_id=<?php echo $this->_var['other_id']; ?>" target="_self">
            <h1>回复:</h1>
            <textarea name="description" id="description"  style="width:95%; height:200px;"></textarea>
            <div class="issuance">
                <input type="submit" id="confirm_button" class="btn" value="确认" />
            </div>
        </form>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
<?php echo $this->fetch('footer.html'); ?>
